home *** CD-ROM | disk | FTP | other *** search
- ATAN2(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- AATTAANN22, DDAATTAANN22, QQAATTAANN22, AATTAANN22DD, DDAATTAANN22DD, QQAATTAANN22DD - Computes arc tangent
- (inverse tangent) for two arguments
-
- SSYYNNOOPPSSIISS
- AATTAANN22 (([YY==]_y,,[XX==]_x))
- DDAATTAANN22 (([YY==]_y,,[XX==]_x))
- QQAATTAANN22 (([YY==]_y,,[XX==]_x))
-
- AATTAANN22DD (([YY==]_y,,[XX==]_x))
- DDAATTAANN22DD (([YY==]_y,,[XX==]_x))
- QQAATTAANN22DD (([YY==]_y,,[XX==]_x))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- Fortran extensions: QQAATTAANN22, AATTAANN22DD, DDAATTAANN22DD, QQAATTAANN22DD
-
- DDEESSCCRRIIPPTTIIOONN
- AATTAANN22, DDAATTAANN22, and QQAATTAANN22 return the arc tangent, for two arguments,
- in radians. AATTAANN22DD, DDAATTAANN22DD, and QQAATTAANN22DD return the arc tangent, for
- two arguments, in degrees. These intrinsics accept the following
- arguments:
-
- _y Must be type real. For DDAATTAANN22 and DDAATTAANN22DD, must be of type
- double precision. For QQAATTAANN22 and QQAATTAANN22DD, must be of type
- quad precision. See the RETURN VALUES section for
- information on input data types and return values. The data
- type and kind type for single-precision, double-precision,
- and quad-precision values differ depending on your platform.
- For platform-specific information, see the TERMINOLOGY
- section of the IINNTTRROO__IINNTTRRIINN(3I) man page.
-
- For AATTAANN22, DDAATTAANN22, and QQAATTAANN22, the following rules apply:
-
- * If _y is positive, the result is positive.
-
- * If _y is negative, the result is negative.
-
- * If _y is positive or negative zero, and if _x is positive,
- the result is positive or negative zero.
-
- * If _y is positive or negative zero, and if _x is negative,
- the result is positive or negative pi.
-
- * If _y is zero, _x cannot also be zero.
-
- For AATTAANN22DD, DDAATTAANN22DD, and QQAATTAANN22DD, the following rules apply:
-
- * If _y is positive, the result is positive.
-
- * If _y is negative, the result is negative.
-
- * If _y is zero, and if _x is positive, the result is zero.
-
- * If _y is zero, and if _x is negative, the result is 180.0.
-
- * If _y is zero, _x cannot also be zero.
-
- _x Must be of type real. For DDAATTAANN22 and DDAATTAANN22DD, must be of
- type double-precision. For QQAATTAANN22 and QQAATTAANN22DD, must be of
- type quad-precision. See the RETURN VALUES section for
- information on input data types and return values. The data
- type and kind type for real, double-precision, and
- quad-precision values differ depending on your platform.
- For platform-specific information, see the TERMINOLOGY
- section of the IINNTTRROO__IINNTTRRIINN(3I) man page.
-
- For AATTAANN22, DDAATTAANN22, and QQAATTAANN22, the following rules apply:
-
- * If _x is zero, _y cannot also be zero.
-
- * If _x is zero, the value of the absolute value of the
- result is pi/2.
-
- For AATTAANN22DD, DDAATTAANN22DD, and QQAATTAANN22DD, the following rules apply:
-
- * If _x is zero, _y cannot also be zero.
-
- * If _x is zero, the absolute value of the result is 90.0.
-
- AATTAANN22 and AATTAANN22DD are generic function names; the others are specifics.
- These are elemental intrinsic functions.
-
- Vector versions of AATTAANN22 and DDAATTAANN22 exist on UNICOS and UNICOS/mk
- systems. On UNICOS/mk systems, the vector versions of these
- intrinsics are used when --OO vveeccttoorr33 or --OO33 are specified on the
- compiler command line. On UNICOS/mk systems, the 64-bit intrinsic
- vectorizes; the 32-bit version does not.
-
- These functions evaluate _y = arctan(_y/_x).
-
- The result range, in radians, for AATTAANN22, DDAATTAANN22, and QQAATTAANN22 is as
- follows:
-
- -pi <= _r_e_s_u_l_t <= pi
-
- The result range, in degrees, for AATTAANN22DD, DDAATTAANN22DD, and QQAATTAANN22DD is as
- follows:
-
- -180 <= _r_e_s_u_l_t <= 180
-
- NNOOTTEESS
- The AATTAANN22 and DDAATTAANN22 intrinsic function names can be passed as
- arguments; the others cannot.
-
- RREETTUURRNN VVAALLUUEESS
- AATTAANN22 and AATTAANN22DD return the real arc tangent of the quotient of their
- real arguments.
-
- DDAATTAANN22 and DDAATTAANN22DD return the double-precision arc tangent of the
- quotient of their double-precision arguments.
-
- QQAATTAANN22 and QQAATTAANN22DD return the quad-precision arc tangent of the
- quotient of their quad-precision arguments.
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-